import os

class Config:
# PostgreSQL配置
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'postgresql://blog_user:blog_password@localhost:5432/blog_db'

# JWT配置
JWT_SECRET_KEY = os.environ.get('JWT_SECRET') or 'super-secret-key'

# SQLAlchemy配置
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENGINE_OPTIONS = {
    'pool_size': 10,
    'pool_recycle': 300,
    'pool_pre_ping': True
}